package com.shibaobei.activity.service;

import com.shibaobei.activity.dao.FormTemplateMapper;
import com.shibaobei.activity.model.Application;
import com.shibaobei.activity.model.Template;
import com.shibaobei.activity.model.User;
import com.shibaobei.activity.utils.UploadFileUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.web.multipart.MultipartFile;

import javax.servlet.http.HttpSession;
import java.io.IOException;
import java.util.Date;
import java.util.List;

/**
 * Created by Administrator on 2020/5/1 0001.
 */
@Service
public class FormTemplateService {
    @Autowired
    private FormTemplateMapper templateMapper;


    public List<Template> findList() {
        return templateMapper.findList();
    }

    public void addTemplate(Template template) {
        templateMapper.add(template);
    }

    public void deleteTemplate(String id) {
        templateMapper.deleteTemplate(Integer.valueOf(id));
    }

    public Template getTemplateById(String id) {
        return templateMapper.getTemplateById(Integer.valueOf(id));
    }


}
